package com.cjb.usercenter.service;

import com.cjb.usercenter.dao.UserDOMapper;
import com.cjb.usercenter.entity.UserDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserDaoService {

    @Resource
    private UserDOMapper userDOMapper;




    public Integer saveUser(UserDO userDo){
        return userDOMapper.insert(userDo);
    }


    public List<UserDO> listUsers() {
        return userDOMapper.selectAll();
    }
}
